package org.example.controller;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Tag(name = "用户接口", description = "用户管理相关接口")
@RestController
public class MyController {

@Operation(summary = "新增用户",description = "创建新用户并保存到系统" )
    @GetMapping("/hello")
    public String helloSwagger(String name,Integer id){
        return  "Swagger能够在线自动生成接口的文档，同时具备测试接口的功能。";
    }
}
